package com.job.createType.simpleFactory;

/**
 * @Author 王博
 * @DateTime 2025-04-08 10:55
 */
public class CoffeeShop {
    public static void main(String[] args) {
        Coffee coffee = CoffeeShop.createCoffee("lattee");
        System.out.println(coffee.getCoffeeName());
    }

    public static Coffee createCoffee(String type){
        CoffeeFactory coffeeFactory = new CoffeeFactory();
        return coffeeFactory.createCoffee(type);
    }
}
